package com.spittr.domain;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.NotNull;

/**
 * Manager
 *
 * @author 龙虹宇
 * @version 1.0
 * @date 2023/11/17
 */
public class Manager {
    private Integer id;
    @NotNull
    private String username;
    @NotNull
    private String password;
    @NotNull
    private String fullName;
    @NotNull
    @Email
    private String email;
    @NotNull
    private String phoneNo;
    @NotNull
    private Integer delete;

    @Override
    public String toString() {
        return "Manager{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", fullName='" + fullName + '\'' +
                ", email='" + email + '\'' +
                ", phoneNo='" + phoneNo + '\'' +
                ", delete=" + delete +
                '}';
    }

    public Manager() {
    }

    /**
     * Instantiates a new Manager.
     * 全参构造器
     *
     * @param id       the id
     * @param username the username
     * @param password the password
     * @param fullName the full name
     * @param email    the email
     * @param phoneNo  the phone no
     * @param delete   the delete
     */
    public Manager(Integer id, String username, String password, String fullName, String email, String phoneNo, Integer delete) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.fullName = fullName;
        this.email = email;
        this.phoneNo = phoneNo;
        this.delete = delete;
    }

    /**
     * Instantiates a new Manager.
     * 无 id构造器
     *
     * @param username the username
     * @param password the password
     * @param fullName the full name
     * @param email    the email
     * @param phoneNo  the phone no
     * @param delete   the delete
     */
    public Manager(String username, String password, String fullName, String email, String phoneNo, Integer delete) {
        this.username = username;
        this.password = password;
        this.fullName = fullName;
        this.email = email;
        this.phoneNo = phoneNo;
        this.delete = delete;
    }

    /**
     * Gets id.
     *
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets username.
     *
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * Sets username.
     *
     * @param username the username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * Gets password.
     *
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Sets password.
     *
     * @param password the password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Gets full name.
     *
     * @return the full name
     */
    public String getFullName() {
        return fullName;
    }

    /**
     * Sets full name.
     *
     * @param fullName the full name
     */
    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    /**
     * Gets email.
     *
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Sets email.
     *
     * @param email the email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Gets phone no.
     *
     * @return the phone no
     */
    public String getPhoneNo() {
        return phoneNo;
    }

    /**
     * Sets phone no.
     *
     * @param phoneNo the phone no
     */
    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    /**
     * Gets delete.
     *
     * @return the delete
     */
    public Integer getDelete() {
        return delete;
    }

    /**
     * Sets delete.
     *
     * @param delete the delete
     */
    public void setDelete(Integer delete) {
        this.delete = delete;
    }
}
